ga.core.algorithm.interactive
Interface ISIGA<T extends IIndividual<T>>

Type Parameters:
T - The generic type of individuals.
All Superinterfaces:
EvaluationListener<T>, GA<T>
All Known Implementing Classes:
AbstractSIGA, SIGA, SIGAGeneration

public interface ISIGA<T extends IIndividual<T>>
extends EvaluationListener<T>, GA<T>

Interface for simple interactive genetic algorithms.

Since:
11.08.2012
Author:
Stephan Dreyer

Field Summary
 
Fields inherited from interface ga.core.GA
KEY_EVALUATED_INDIVIDUALS_MIN_COUNT, KEY_GENOME_MAX_LENGTH, KEY_GENOME_MIN_LENGTH, KEY_INIT_INDIVIDUAL, KEY_INIT_INDIVIDUAL_PERCENTAGE, KEY_INTERVAL_FITNESS_MAX_WIDTH, KEY_VALIDATION_SPACE
 
Method Summary
 void exit()
          Exits the algorithm and frees resources.
 GAContext getContext()
          Getter for the GA context.
 ICrossoverOp<T> getCrossoverOp()
          Getter for the crossover operator.
 int getGeneration()
          Getter for the current generation.
 IMutationOp<T> getMutationOp()
          Getter for the mutation operator.
 IPopulation<T> getPopulation()
          Getter for the population.
 void individualEvaluated(T individual)
          This will be notified when an evaluator has evaluated the individual.
 void init()
          Initializes the algorithm and population.
 void newIndividualRequested()
          This will be notified when a evaluator demands a new individual for evaluation.
 void setValidate(boolean validate)
          Setter to enable/disable individual validation.
 void setValidator(IValidator<T> validator)
          Set the individual validator for the algorithm.
 
Methods inherited from interface ga.core.GA
step
 

Method Detail

getCrossoverOp

ICrossoverOp<T> getCrossoverOp()
Getter for the crossover operator.

Returns:
Crossover operator.
Since:
11.08.2012

getMutationOp

IMutationOp<T> getMutationOp()
Getter for the mutation operator.

Returns:
Mutation operator.
Since:
11.08.2012

init

void init()
Description copied from interface: GA
Initializes the algorithm and population.

Specified by:
init in interface GA<T extends IIndividual<T>>

newIndividualRequested

void newIndividualRequested()
Description copied from interface: EvaluationListener
This will be notified when a evaluator demands a new individual for evaluation.

Specified by:
newIndividualRequested in interface EvaluationListener<T extends IIndividual<T>>

individualEvaluated

void individualEvaluated(T individual)
Description copied from interface: EvaluationListener
This will be notified when an evaluator has evaluated the individual.

Specified by:
individualEvaluated in interface EvaluationListener<T extends IIndividual<T>>
Parameters:
individual - The individual that has been evaluated.

setValidate

void setValidate(boolean validate)
Description copied from interface: GA
Setter to enable/disable individual validation. To validate, this must be set to true and a validator must be set.

Specified by:
setValidate in interface GA<T extends IIndividual<T>>
Parameters:
validate - Enable/disable validation.

setValidator

void setValidator(IValidator<T> validator)
Description copied from interface: GA
Set the individual validator for the algorithm. To validate, this must be not be null and validate must have been activated.

Specified by:
setValidator in interface GA<T extends IIndividual<T>>
Parameters:
validator - The individual validator.

getPopulation

IPopulation<T> getPopulation()
Description copied from interface: GA
Getter for the population.

Specified by:
getPopulation in interface GA<T extends IIndividual<T>>
Returns:
The population.

getContext

GAContext getContext()
Getter for the GA context.

Returns:
The GA context.
Since:
11.08.2012

exit

void exit()
Exits the algorithm and frees resources.

Since:
11.08.2012

getGeneration

int getGeneration()
Getter for the current generation. Note: in steady state mode, this is the actual number of single reproductions.

Returns:
Current generation.
Since:
11.08.2012